package com.example.zhaohang.mynewtimeselect;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by 赵航 on 2017/10/29.
 */

public class ToastMake {


    private static Toast toastMake;

    public static void ShowText(Context context, String text){

        if (toastMake==null){
            toastMake = Toast.makeText(context, text, Toast.LENGTH_LONG);
        }else {
            toastMake.setText(text);
        }

        toastMake.show();
    }

}
